package bookmanagement.operation.impl;

import bookmanagement.book.BookList;
import bookmanagement.operation.IOperation;

// 查询操作
public class FindOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("您现在进行的是查询书籍操作");
        System.out.println("请输入要查询的书籍名称:");
        String booksName = scanner.next();
        if (bookList.findBooks(booksName)) {
            System.out.println("图书馆有该书~");
        }else {
            System.out.println("图书馆还没有上架该书籍~");
        }
    }
}
